const common = {
    namespaced: true,
    state: {
        tabs: {
            list: [{
                title: "首页",
                name: "login"
            }],
        }
    },
    mutations: {
        change(state, payload) {
            console.log(payload)
            state.tabs.list.push(payload)
        },
    },
    actions: {
        postAuthorize(context, param) {
            setTimeout(() => {
                context.commit('changePage', { page: 50 })
            }, 2000)
        },
    },
    getters: {}
}
export default common